Optimal. Leaf size=42 \[ -\frac {5-6 x}{49 \left (2+5 x-3 x^2\right )}-\frac {6}{343} \log (2-x)+\frac {6}{343} \log (1+3 x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {628, 630, 31}
\begin {gather*} -\frac {5-6 x}{49 \left (-3 x^2+5 x+2\right )}-\frac {6}{343} \log (2-x)+\frac {6}{343} \log (3 x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 628
Rule 630
Rubi steps
\begin {align*} \int \frac {1}{\left (2+5 x-3 x^2\right )^2} \, dx &=-\frac {5-6 x}{49 \left (2+5 x-3 x^2\right )}+\frac {6}{49} \int \frac {1}{2+5 x-3 x^2} \, dx\\ &=-\frac {5-6 x}{49 \left (2+5 x-3 x^2\right )}-\frac {18}{343} \int \frac {1}{-1-3 x} \, dx+\frac {18}{343} \int \frac {1}{6-3 x} \, dx\\ &=-\frac {5-6 x}{49 \left (2+5 x-3 x^2\right )}-\frac {6}{343} \log (2-x)+\frac {6}{343} \log (1+3 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 42, normalized size = 1.00 \begin {gather*} \frac {5-6 x}{49 \left (-2-5 x+3 x^2\right )}-\frac {6}{343} \log (2-x)+\frac {6}{343} \log (1+3 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.53, size = 32, normalized size = 0.76
method | result | size |
default | \(-\frac {1}{49 \left (x -2\right )}-\frac {6 \ln \left (x -2\right )}{343}-\frac {3}{49 \left (3 x +1\right )}+\frac {6 \ln \left (3 x +1\right )}{343}\) | \(32\) |
risch | \(\frac {-\frac {2 x}{49}+\frac {5}{147}}{x^{2}-\frac {5}{3} x -\frac {2}{3}}-\frac {6 \ln \left (x -2\right )}{343}+\frac {6 \ln \left (3 x +1\right )}{343}\) | \(32\) |
norman | \(\frac {\frac {15}{98} x^{2}-\frac {37}{98} x}{3 x^{2}-5 x -2}-\frac {6 \ln \left (x -2\right )}{343}+\frac {6 \ln \left (3 x +1\right )}{343}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 34, normalized size = 0.81 \begin {gather*} -\frac {6 \, x - 5}{49 \, {\left (3 \, x^{2} - 5 \, x - 2\right )}} + \frac {6}{343} \, \log \left (3 \, x + 1\right ) - \frac {6}{343} \, \log \left (x - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.29, size = 53, normalized size = 1.26 \begin {gather*} \frac {6 \, {\left (3 \, x^{2} - 5 \, x - 2\right )} \log \left (3 \, x + 1\right ) - 6 \, {\left (3 \, x^{2} - 5 \, x - 2\right )} \log \left (x - 2\right ) - 42 \, x + 35}{343 \, {\left (3 \, x^{2} - 5 \, x - 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 32, normalized size = 0.76 \begin {gather*} \frac {5 - 6 x}{147 x^{2} - 245 x - 98} - \frac {6 \log {\left (x - 2 \right )}}{343} + \frac {6 \log {\left (x + \frac {1}{3} \right )}}{343} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.66, size = 36, normalized size = 0.86 \begin {gather*} -\frac {6 \, x - 5}{49 \, {\left (3 \, x^{2} - 5 \, x - 2\right )}} + \frac {6}{343} \, \log \left ({\left | 3 \, x + 1 \right |}\right ) - \frac {6}{343} \, \log \left ({\left | x - 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 34, normalized size = 0.81 \begin {gather*} \frac {6\,\ln \left (\frac {3\,x+1}{x-2}\right )}{343}+\frac {2\,\left (3\,x-\frac {5}{2}\right )}{49\,\left (-3\,x^2+5\,x+2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________